home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Languguage OS 2
/
Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO
/
gnu
/
m4-1_0_3.lha
/
m4-1.0.3
/
checks
/
51.eval
< prev
next >
Wrap
Text File
|
1992-12-19
|
405b
|
19 lines
dnl /usr2/pinard/pub/m4-1.0.3/m4.texinfo:2395: Origin of test
eval(-3 * 5)
dnl @result{}-15
eval(index(`Hello world', `llo') >= 0)
dnl @result{}1
define(`square', `eval(($1)^2)')
dnl @result{}
square(9)
dnl @result{}81
square(square(5)+1)
dnl @result{}676
define(`foo', `666')
dnl @result{}
eval(`foo'/6)
dnl @error{}m4:51.eval:14: bad expression in eval: foo/6
dnl @result{}
eval(foo/6)
dnl @result{}111